package com.ruoyi.chapter.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 课程章节对象 content_chapter
 * 
 * @author ruoyi
 * @date 2025-10-10
 */
public class ContentChapter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 章节ID */
    private Long id;

    /** 所属内容ID */
    @Excel(name = "所属内容ID")
    private Long contentId;

    /** 章节标题 */
    @Excel(name = "章节标题")
    private String title;

    /** 视频播放地址 */
    @Excel(name = "视频播放地址")
    private String videoUrl;

    /** 章节时长（秒） */
    @Excel(name = "章节时长", readConverterExp = "秒=")
    private Long duration;

    /** 是否免费试看 */
    @Excel(name = "是否免费试看")
    private Integer isFree;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setVideoUrl(String videoUrl) 
    {
        this.videoUrl = videoUrl;
    }

    public String getVideoUrl() 
    {
        return videoUrl;
    }

    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }

    public void setIsFree(Integer isFree) 
    {
        this.isFree = isFree;
    }

    public Integer getIsFree() 
    {
        return isFree;
    }

    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contentId", getContentId())
            .append("title", getTitle())
            .append("videoUrl", getVideoUrl())
            .append("duration", getDuration())
            .append("isFree", getIsFree())
            .append("sort", getSort())
            .append("createTime", getCreateTime())
            .toString();
    }
}
